#ifndef __Drv_Sys__h
#define __Drv_Sys__h

#include "stdint_type.h"
#include "stm32f10x.h"

#define TICK_PER_SECOND 1000
#define TICK_US (1000000 / TICK_PER_SECOND)

void SysTick_Init(void);

uint32_t SysTick_GetTick(void);
uint32_t GetSysTime_us(void);
void Delay_us(uint32_t us);
void Delay_ms(u32 time);
void SysTick_IRQ(void);
#endif
